﻿using Test.Site.Data.Constant;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test.Site.Data.Result
{
    public class OperateResult<T> // 大概了解下，这个是操作结果的统一类型
    {
        /// <summary>
        /// 操作结果代码
        /// </summary>
        public int Code { get; set; } = ErrorCodes.OK;

        /// <summary>
        /// 信息
        /// </summary>
        public string Msg { get; set; } = ErrorCodes.CodeMsgDict[ErrorCodes.OK]; // 默认返回成功
        

        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
